package com.chris.core.socket.netty.dto.protocol;

import java.io.Serializable;

/**
 * 文件传输类数据结构
 */
public class FileMessageProtocol implements Serializable {
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 文件标识A
     */
    private String tagA;
    /**
     * 文件标识B
     */
    private String tagB;
    /**
     * 文件大小
     */
    private Long fileSize;
    /**
     * 起始点
     */
    private Long beginPos;
    /**
     * 终结点
     */
    private Long endPos;
    /**
     * 文件内容
     */
    private byte[] fileData;


    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getTagA() {
        return tagA;
    }

    public void setTagA(String tagA) {
        this.tagA = tagA;
    }

    public String getTagB() {
        return tagB;
    }

    public void setTagB(String tagB) {
        this.tagB = tagB;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Long getBeginPos() {
        return beginPos;
    }

    public void setBeginPos(Long beginPos) {
        this.beginPos = beginPos;
    }

    public Long getEndPos() {
        return endPos;
    }

    public void setEndPos(Long endPos) {
        this.endPos = endPos;
    }

    public byte[] getFileData() {
        return fileData;
    }

    public void setFileData(byte[] fileData) {
        this.fileData = fileData;
    }
}
